/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.fd.domain.po.DocumentAttachmentPO;
import com.xy.biz.fd.domain.query.DocumentAttachmentQuery;

/**
 *
 *
 * @author wcs
 * @date 2021-2-19
 */
public interface DocumentAttachmentDao {

	/**
	 * 保存
	 *
	 * @param documentAttachmentPO
	 */
	int saveDocumentAttachment(DocumentAttachmentPO documentAttachmentPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllDocumentAttachment(Collection<DocumentAttachmentPO> collection);

	/**
	 * 更新
	 *
	 * @param documentAttachmentPO
	 */
	int updateDocumentAttachment(DocumentAttachmentPO documentAttachmentPO);

	/**
	 * 删除
	 *
	 * @param documentAttachmentPO
	 */
	int deleteDocumentAttachment(DocumentAttachmentPO documentAttachmentPO);
//	int deleteDocumentAttachment(Long documentAttachmentId);

	/**
	 * 查找一个
	 *
	 * @param documentAttachmentId
	 * @return
	 */
	DocumentAttachmentPO getDocumentAttachment(Long documentAttachmentId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<DocumentAttachmentPO> listDocumentAttachmentById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<DocumentAttachmentPO> listDocumentAttachment(DocumentAttachmentQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countDocumentAttachment(DocumentAttachmentQuery query);

}
